About 1065 letters

About 5 minutes

#HTML <pre>

The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced font.

#Attributes

  • width Deprecated

Non-standard : Contains the preferred count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS width instead.

  • wrap Non-standard

Deprecated : Is a hint indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS white-space instead.

Created in 6/9/2025

Updated in 6/9/2025